<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class CreateMapNationalIndustrialParkTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('map_national_industrial_park', function (Blueprint $table) {
            $table->id();

            $table->string('name', 255)->default('')->comment('园区名称');
            $table->string('province', 20)->default('')->comment('省份');
            $table->string('city', 20)->default('')->comment('城市');
            $table->string('district', 20)->default('')->comment('地区');
            $table->string('lon', 255)->default('')->comment('经度');
            $table->string('lat', 255)->default('')->comment('纬度');
            $table->unsignedInteger('createdAt')->default(0)->comment('创建时间');
            $table->unsignedInteger('createdByUid')->default(0)->comment('创建人');
            $table->unsignedInteger('updatedAt')->default(0)->comment('修改时间');
            $table->unsignedInteger('updatedByUid')->default(0)->comment('修改人');
            $table->collation = 'utf8mb4_general_ci';
            $table->comment = '全国产业园区信息';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('map_national_industrial_park');
    }
}
